import request from '@/utils/request'


export default () => ({

  //项目报告列表
  PROJECT_START_WORK_REPORT_LIST:function (data) {
    return request({
      url: `/project-start/work_report/list`,
      method: 'post',
      data
    })
  },

  //项目报告创建
  PROJECT_START_WORK_REPORT_CREATE:function (data) {
    return request({
      url: `/project-start/work_report/create`,
      method: 'post',
      data
    })
  },

  //项目报告详情
  PROJECT_START_WORK_REPORT_DETAIL:function (id) {
    return request({
      url: `/project-start/work_report/detail?id=${id}`,
      method: 'get',
    })
  },

  //评论项目报告
  PROJECT_START_WORK_REPORT_CREATE_COMMENT:function (data) {
    return request({
      url: `/project-start/work_report/create-comment`,
      method: 'post',
      data
    })
  },

  //项目报告下拉项目
  PROJECT_START_WORK_REPORT_PROJECT:function (data) {
    return request({
      url: `/project-start/project/list-to-report`,
      method: 'post',
      data
    })
  },

  //检测项目报告是否已创建
  PROJECT_START_WORK_REPORT_EXIST:function (data) {
    return request({
      url: `/project-start/work_report/if-exist`,
      method: 'post',
      data
    })
  },

  //项目报告下拉任务
  PROJECT_START_WORK_REPORT_TASK:function (data) {
    return request({
      url: `/project-start/task/list-to-report`,
      method: 'post',
      data
    })
  },

  //报告列表---项目列表
  PROJECT_START_WORK_LIST_REPORT:function () {
    return request({
      url: `/project-start/work_report/project-list`,
      method: 'get',
    })
  },

  //报告列表---员工列表
  PROJECT_START_WORK_LIST_MEMBER:function () {
    return request({
      url: `/project-start/work_report/member-list`,
      method: 'get',
    })
  },

  //项目报告下拉项目
  PROJECT_START_WORK_REPORT_LAST_DETAIL:function (params) {
    return request({
      url: `/project-start/work_report/last-detail`,
      method: 'get',
      params
    })
  },

})
